{layout name="p/base"}
  <div id="page-wrapper">
    <div class="row">
      <div class="col-lg-12">
        <h1>订单管理 <small>订单信息</small></h1>
        <ol class="breadcrumb">
          <li><a href="index.php"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li><a href="javaScript:;" onclick="javascript:history.back(-1);"><i class="fa fa-dashboard"></i> 订单信息列表</a></li>
          <li class="active"><i class="fa fa-table"></i> 订单详情</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          这里可以查看订单信息 
        </div>
      </div>
    </div>
    <form class="form-horizontal" role="form" action="/ordercaravan/index1" method="get">
      <div class="form-group col-sm-3" style="margin-right:10px;">
        <label for="">选择区域</label>
        <select class="form-control" name="searchfield">
          <option value="number">全部</option>
          <option value="number">北京</option>
          <option value="name">上海</option>
        </select>
      </div>
      <div class="form-group col-sm-3" style="margin-right:10px;">
        <label for="">选择分公司</label>
        <select class="form-control" name="searchfield">
          <option value="number">全部</option>
          <option value="number">浙江分公司</option>
          <option value="name">内蒙古分公司</option>
        </select>
      </div>
      <div class="form-group col-sm-3" style="margin-right:10px;">
        <label for="">选择营地</label>
        <select class="form-control" name="searchfield">
        <option value="number">全部</option>
          <option value="number">北京八达岭房车露营地</option>
          <option value="name">北京迪斯尼房车露营地</option>
        </select>
      </div>
      <div class="form-group col-sm-3 input-group">
        <label for="">请输入搜索条件</label>
        <input class="form-control" type="text" placeholder="订单编号/会员信息" name="keyword">
        <label for="">&nbsp;</label>
        <span class="input-group-btn">
          <button class="btn btn-default" type="submit">搜索</button>
        </span>
      </div>
      <div class="clearfix"></div>
    </form>
    <!-- /.row -->
    <div class="row">
      <div class="col-lg-12">
        <div class="panel panel-info">
          <div class="panel-heading">
              <h3 class="panel-title">订单状态：待入住（未准备）</h3>
          </div>
          <form class="registeraccount role="form" action ="/ordercaravan/cancelorder" method="post">
            <input type="hidden" name="id" value="{$id}">
          </form>
            <div class="panel-body">
              <a class="loginbtn" name="status" value="1"></a>
              <button type="submit" class="btn btn-primary col-sm-2">准备妥当</button>
            </div>
        </div>
        <div class="panel panel-info">
          <div class="panel-heading">
            <h3 class="panel-title">订单信息</h3>
          </div>
          <div class="panel-body">
            <span class="glyphicon glyphicon-file"> 基本信息</span>
          </div>
          <table class="table table-striped">
            <tr><td>订单编号：{$detail['number']}</td><td>下单时间：{$detail.created_at}</td></tr>
            <tr><td>取车：{$detail['take_car_date']} {$detail['take_car_area']}</td><td>还车：{$detail['leave_car_date']} {$detail['leave_car_area']}</td></tr>
          </table>
        </div>
        <div class="panel panel-default">
          <div class="panel-body">
            <span class="glyphicon glyphicon-user"> 预约人信息</span>
          </div>
          <table class="table table-striped">
            <tr><td>会员账号：{$rentuser['mobile']}</td><td>预约人姓名：{$rentuser['name']}</td></tr>
          </table>
        </div>
        <div class="panel panel-default">
          <div class="panel-body">
            <span class="glyphicon glyphicon-credit-card"> 支付详情</span>
          </div>
          <table class="table table-striped">
            <th>每晚</th><th>入住天数</th><th>服务费</th><th>旅行币总计</th><th>货币总计</th>
            <tr><td>{$caravan['integral']}旅行币</td><td>{$date}天</td><td>{$detail['service_fee']}元</td><td><strong class="text-info">{$intergral}旅行币</strong></td><td><strong class="text-info">￥150元</strong></td></tr>
          </table>
        </div>
        <div class="panel panel-info">
          <div class="panel-heading">
            <h3 class="panel-title">车主信息</h3>
          </div>
          <div class="panel-body">
            <span class="glyphicon glyphicon-file"> 基本信息</span>
          </div>
          <table class="table table-striped">
            <tr><td>车主账号：{$caravanuserinfo['mobile']}</td><td>车主姓名：{$caravanuserinfo['name']}</td></tr>
            <tr><td>车辆编号：{$caravaninfo['number']}</td><td>邮箱：5877469456@qq.com</td></tr>
          </table>
        </div>
        <!-- <input type="button" value="返回" class="btn btn-default"  onclick="javascript:history.back(-1);" /> -->
      </div>
    </div>
    <!-- /.row -->
  </div><!-- /#page-wrapper -->

